package com.project.demo.entity.vo.teacher;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.demo.base.BeanConvert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 视频 VO (临时表，二次修改)
 *
 * @author Myles Yang
 */
@ToString(callSuper = true)
@Accessors(chain = true)
@Data
public class EduVideoTmpVO implements Serializable, BeanConvert {

	private static final long serialVersionUID = 3673010283045389778L;

	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;

	private Integer oid;

	@ApiModelProperty(value = "课程id")
	private Integer courseId;

	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@ApiModelProperty(value = "章节ID")
	private Long chapterId;

	@ApiModelProperty(value = "视频名称")
	private String title;

	@ApiModelProperty(value = "云端视频资源")
	private String videoId;

	@ApiModelProperty(value = "排序字段")
	private Integer sort;

	@ApiModelProperty(value = "播放次数")
	private Integer playCount;

	@ApiModelProperty(value = "是否可以试听：0免费 1收费")
	private Boolean free;

	@ApiModelProperty(value = "视频时长（秒）")
	private String duration;

	@ApiModelProperty(value = "视频源文件大小（字节）")
	private Long size;
}
